<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.1">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/%E6%AD%A6%E6%B1%8932x32.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/%E6%AD%A6%E6%B1%8916x16.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib1/font-awesome/css/all.min.css">
  <link rel="stylesheet" href="/lib1/pace/pace-theme-center-simple.min.css">
  <script src="/lib1/pace/pace.min.js"></script>

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"example.com","root":"/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":true,"show_result":true,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

  <meta name="description" content="前言承接上一篇的虚拟DOM和diff算法的简单说明：虚拟DOM其实就是JS对象之间的关系，且vue中使用patch算法将虚拟DOM构建成为真实DOM。而patch得核心就是深度优先、同级比较。且在同级比较得过程中，和两遍循环查找不同的暴力逻辑不一样，diff的过程往往主要是比较头尾节点的区别。 diff：3W1H的方式回答下diff算法。 1、What是什么:是一种算法，在虚拟DOM概念出现后，由">
<meta property="og:type" content="article">
<meta property="og:title" content="vue源码分析(三)">
<meta property="og:url" content="http://example.com/2021/03/17/vue%E6%BA%90%E7%A0%81/vue%E6%BA%90%E7%A0%81%E5%88%86%E6%9E%90(%E4%B8%89)/index.html">
<meta property="og:site_name" content="Technological Blog">
<meta property="og:description" content="前言承接上一篇的虚拟DOM和diff算法的简单说明：虚拟DOM其实就是JS对象之间的关系，且vue中使用patch算法将虚拟DOM构建成为真实DOM。而patch得核心就是深度优先、同级比较。且在同级比较得过程中，和两遍循环查找不同的暴力逻辑不一样，diff的过程往往主要是比较头尾节点的区别。 diff：3W1H的方式回答下diff算法。 1、What是什么:是一种算法，在虚拟DOM概念出现后，由">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2021-03-17T07:18:39.000Z">
<meta property="article:modified_time" content="2021-03-17T08:38:08.500Z">
<meta property="article:author" content="Li Yudong">
<meta property="article:tag" content="vue源码">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="http://example.com/2021/03/17/vue%E6%BA%90%E7%A0%81/vue%E6%BA%90%E7%A0%81%E5%88%86%E6%9E%90(%E4%B8%89)/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>vue源码分析(三) | Technological Blog</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">Technological Blog</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">IT小白的成长之旅</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="user fa-fw"></i>关于</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="tags fa-fw"></i>标签<span class="badge">18</span></a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="th fa-fw"></i>分类<span class="badge">14</span></a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="archive fa-fw"></i>归档<span class="badge">95</span></a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result">
  <div id="no-result">
    <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
  </div>
</div>

    </div>
  </div>

</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>

  <a href="https://github.com/tiarmor1" class="github-corner" title="Follow me on GitHub" aria-label="Follow me on GitHub" rel="noopener" target="_blank"><svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://example.com/2021/03/17/vue%E6%BA%90%E7%A0%81/vue%E6%BA%90%E7%A0%81%E5%88%86%E6%9E%90(%E4%B8%89)/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/author.jpg">
      <meta itemprop="name" content="Li Yudong">
      <meta itemprop="description" content="">
    </span>
    
    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Technological Blog">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          vue源码分析(三)
        </h1>
    
        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>
              
    
              <time title="创建时间：2021-03-17 15:18:39 / 修改时间：16:38:08" itemprop="dateCreated datePublished" datetime="2021-03-17T15:18:39+08:00">2021-03-17</time>
            </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/VUE/" itemprop="url" rel="index"><span itemprop="name">VUE</span></a>
                </span>
            </span>
    
          
    
        </div>
      </header>
    
    
    
    
    <div class="post-body" itemprop="articleBody">
    
      
        <h1 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h1><p>承接上一篇的虚拟DOM和diff算法的简单说明：虚拟DOM其实就是JS对象之间的关系，且vue中使用patch算法将虚拟DOM构建成为真实DOM。而patch得核心就是深度优先、同级比较。且在同级比较得过程中，和两遍循环查找不同的暴力逻辑不一样，diff的过程往往主要是比较头尾节点的区别。</p>
<p>diff：3W1H的方式回答下diff算法。</p>
<p>1、What是什么:是一种算法，在虚拟DOM概念出现后，由虚拟DOM比较出DOM的最小操作的算法。</p>
<p>2、Why为什么要用它：轻量且快速、跨平台性、兼容性，主要说一下它的优点与应用与设计的目的。</p>
<p>3、Where哪里使用了它：在vue的源码中，当两个VNode节点进行patch操作时，如果存在新旧虚拟DON树时，就通过diff算法来比较其变化。</p>
<p>4、How怎么执行：总体上来说：深度优先、同级比较。先从顶层节点开始比较，如果其有孩子，则执行递归向下的策略，一直往孩子节点里面走。同时在同级比较的过程中，是取新旧虚拟DOM的头尾节点，然后进行比较，根据比较得出的四种不同情况，会进行不同的处理方法。</p>
<p>new Watcher =&gt; 初始化的patch():批量创建操作 =&gt; render() =&gt; render中的动态值触发：get() =&gt; dep()开始做依赖收集。</p>
<h1 id="模板编译"><a href="#模板编译" class="headerlink" title="模板编译"></a>模板编译</h1><p>模板编译的主要目标是**将模板(template)转换为渲染函数(render)**。Vue 2.0需要用到VNode描述视图以及各种交互，手写显然不切实际，因此用户只需编写类似HTML代码的Vue模板，通过编译器将模板转换为可返回VNode的render函数。</p>
<p>编译的过程分为三步：解析 =&gt; 优化 =&gt; 生成。</p>
<p>当用户设置template选项或者el选项时，则会执行编译，</p>
<h2 id="解析"><a href="#解析" class="headerlink" title="解析"></a>解析</h2><p>解析器将模板解析为抽象语法树，基于AST可以做优化或者代码生成工作。</p>
<p><strong>/src/compiler/parser/index.js</strong></p>
<p>解析器内部分了<strong>HTML解析器、文本解析器和过滤器解析器</strong>，最主要是HTML解析器.</p>
<p>在HTML解析中，遇到&lt;开始标签，就会入栈，执行start，创建一个AST对象，解析关键的指令：v-for，v-if等等。遇到&gt;结束标签就会出栈。但解析过程比较复杂，因此会消耗大量性能。因此通常我们会使用webpack写一些vue-loader，将template均全部先编译成渲染函数，而不会在浏览器的运行时进行编译。且此时编译器也不用打包至页面中，减少打包体积。</p>
<h2 id="优化"><a href="#优化" class="headerlink" title="优化"></a>优化</h2><p><strong>src/compiler/optimizer.js</strong> </p>
<p><strong>optimize</strong>方法标记一下静态节点，即基本不会变化的节点。优点：1、每次重新渲染时，不需要为静态子树创建新节点；2、虚拟DOM中patch时，可以跳过静态子树。</p>
<h2 id="代码生成"><a href="#代码生成" class="headerlink" title="代码生成"></a>代码生成</h2><p><strong>src/compiler/codegen/index.js</strong></p>
<p>generate方法生成渲染函数代码，转换AST为代码字符串</p>
<h1 id="组件化机制"><a href="#组件化机制" class="headerlink" title="组件化机制"></a>组件化机制</h1><h2 id="组件声明（注册）"><a href="#组件声明（注册）" class="headerlink" title="组件声明（注册）"></a>组件声明（注册）</h2><p><strong>Vue.component()</strong></p>
<p><strong>src/core/global-api/assets.js</strong></p>
<p>利用extend方法创建组件的构造函数，之后在组件注册时，注册this.options到全局中，将配置转换为构造函数并添加到components选项，设置组件的key。由于每个组件都是继承于原组件，因此每个组件中都会有components选项。</p>
<h2 id="组件实例创建及挂载"><a href="#组件实例创建及挂载" class="headerlink" title="组件实例创建及挂载"></a><strong>组件实例创建及挂载</strong></h2><h3 id="整体流程"><a href="#整体流程" class="headerlink" title="整体流程"></a><strong>整体流程</strong></h3><p>首先创建的是根组件，首次_render()时，会得到整棵树的VNode结构</p>
<p>整体流程：new Vue() =&gt; $mount() =&gt; vm._render() =&gt; createElement() =&gt; createComponent() =&gt; patch =&gt; createElm =&gt; createComponent()</p>
<h3 id="创建自定义组件"><a href="#创建自定义组件" class="headerlink" title="创建自定义组件"></a><strong>创建自定义组件</strong></h3><p><strong>src\core\vdom\crete-element.js</strong></p>
<p>createElement实际执行VNode创建的函数，核心是根据标签名称tag做相应的操作生成VNode。由于传入tag是非保留标签，因此判定为自定义组件。其实底层的实现，是通过createComponent去创建自定义组件的。</p>
<p><strong>src/core/vdom/create-component.js</strong></p>
<p>创建自定义组件VNode的地方，保存了上一步处理得到的组件构造函数，props，事件等。</p>
<p>同时安装自定义组件管理钩子，比如初始化钩子。由于用户也可能传递钩子，所以会对所有的钩子进行一个整合。</p>
<h3 id="创建自定义组件实例"><a href="#创建自定义组件实例" class="headerlink" title="创建自定义组件实例"></a><strong>创建自定义组件实例</strong></h3><p>根组件执行更新函数时，会递归创建子元素和子组件，入口createElement</p>
<p><strong>core/vdom/patch.js line751</strong></p>
<p>createElement()首次执行_update()时，patch()会通过createEle()创建根元素，子元素创建研究从这里开始。</p>
<p>结论：组件创建顺序自上而下；组件挂载顺序自下而上。</p>

    </div>
    
    
    
    
    <div>
      
        <div>
    
        <div style="text-align:center;color: #ccc;font-size:14px;">-------------本文结束<i class="fa fa-paw"></i>感谢您的阅读-------------</div>
    
</div>

      
    </div>
        <div class="reward-container">
  <div>坚持原创技术分享，您的支持将鼓励我继续创作！</div>
  <button onclick="var qr = document.getElementById('qr'); qr.style.display = (qr.style.display === 'none') ? 'block' : 'none';">
    打赏
  </button>
  <div id="qr" style="display: none;">
      
      <div style="display: inline-block;">
        <img src="/images/alipay.png" alt="Li Yudong 支付宝">
        <p>支付宝</p>
      </div>

  </div>
</div>

        

<div>
<ul class="post-copyright">
  <li class="post-copyright-author">
    <strong>本文作者： </strong>Li Yudong
  </li>
  <li class="post-copyright-link">
    <strong>本文链接：</strong>
    <a href="http://example.com/2021/03/17/vue%E6%BA%90%E7%A0%81/vue%E6%BA%90%E7%A0%81%E5%88%86%E6%9E%90(%E4%B8%89)/" title="vue源码分析(三)">http://example.com/2021/03/17/vue源码/vue源码分析(三)/</a>
  </li>
  <li class="post-copyright-license">
    <strong>版权声明： </strong>本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" rel="noopener" target="_blank"><i class="fab fa-fw fa-creative-commons"></i>BY-NC-SA</a> 许可协议。转载请注明出处！
  </li>
</ul>
</div>

    
      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/vue%E6%BA%90%E7%A0%81/" rel="tag"># vue源码</a>
          </div>
    
        

    
        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2021/03/17/vue%E6%BA%90%E7%A0%81/vue%E6%BA%90%E7%A0%81%E5%88%86%E6%9E%90(%E4%BA%8C)/" rel="prev" title="vue源码分析(二)">
      <i class="fa fa-chevron-left"></i> vue源码分析(二)
    </a></div>
      <div class="post-nav-item">
    <a href="/2021/03/21/webpack/webpack%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE/" rel="next" title="webpack基础配置">
      webpack基础配置 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#前言"><span class="nav-number">1.</span> <span class="nav-text">前言</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#模板编译"><span class="nav-number">2.</span> <span class="nav-text">模板编译</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#解析"><span class="nav-number">2.1.</span> <span class="nav-text">解析</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#优化"><span class="nav-number">2.2.</span> <span class="nav-text">优化</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#代码生成"><span class="nav-number">2.3.</span> <span class="nav-text">代码生成</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#组件化机制"><span class="nav-number">3.</span> <span class="nav-text">组件化机制</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#组件声明（注册）"><span class="nav-number">3.1.</span> <span class="nav-text">组件声明（注册）</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#组件实例创建及挂载"><span class="nav-number">3.2.</span> <span class="nav-text">组件实例创建及挂载</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#整体流程"><span class="nav-number">3.2.1.</span> <span class="nav-text">整体流程</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#创建自定义组件"><span class="nav-number">3.2.2.</span> <span class="nav-text">创建自定义组件</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#创建自定义组件实例"><span class="nav-number">3.2.3.</span> <span class="nav-text">创建自定义组件实例</span></a></li></ol></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="Li Yudong"
      src="/images/author.jpg">
  <p class="site-author-name" itemprop="name">Li Yudong</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">95</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">14</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">18</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/tiarmor1" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;tiarmor1" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:1157019137@qq.com" title="E-Mail → mailto:1157019137@qq.com" rel="noopener" target="_blank"><i class="fa fa-envelope fa-fw"></i>E-Mail</a>
      </span>
  </div>
  <div class="cc-license motion-element" itemprop="license">
    <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" class="cc-opacity" rel="noopener" target="_blank"><img src="/images/cc-by-nc-sa.svg" alt="Creative Commons"></a>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 2020 – 
  <span itemprop="copyrightYear">2022</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Li Yudong</span>
</div>

        








      </div>
    </footer>
  </div>

  
  
  <script color='0,0,0' opacity='0.5' zIndex='-1' count='150' src="/lib1/canvas-nest/canvas-nest.min.js"></script>
  <script src="/lib1/anime.min.js"></script>
  <script src="/lib1/velocity/velocity.min.js"></script>
  <script src="/lib1/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>




  




  
<script src="/js/local-search.js"></script>













  

  

  
   <canvas class="fireworks" style="position: fixed;left: 0;top: 0;z-index: 1; pointer-events: none;" ></canvas> 
   <script type="text/javascript" src="//cdn.bootcss.com/animejs/2.2.0/anime.min.js"></script> 
   <script type="text/javascript" src="/js/fireworks.js"></script>
  
</body>
</html>

